package com.example.admin_test.emp.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class Emp implements Serializable {
    private Integer empId;//员工ID
    private String name;//员工名字
    private String sex;//员工性别
    private Integer age;//员工年龄
    private double sal;//员工工资
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;//员工生日
    private String address;//员工地址
    private String deptName;//部门IDString
    private Integer deptId;//部门IDString

    private Dept dept;
}
